import request from '@/utils/request'

// 查询户表实时数据视图列表
export function listRealtimegatherdataXbView(query) {
    return request({
        url: '/basedata/realtimegatherdataXbView/list',
        method: 'get',
        params: query
    })
}

// 查询户表实时数据视图详细
export function getRealtimegatherdataXbView(tenantId) {
    return request({
        url: '/basedata/realtimegatherdataXbView/' + tenantId,
        method: 'get'
    })
}

// 新增户表实时数据视图
export function addRealtimegatherdataXbView(data) {
    return request({
        url: '/basedata/realtimegatherdataXbView',
        method: 'post',
        data: data
    })
}

// 修改户表实时数据视图
export function updateRealtimegatherdataXbView(data) {
    return request({
        url: '/basedata/realtimegatherdataXbView',
        method: 'put',
        data: data
    })
}

// 删除户表实时数据视图
export function delRealtimegatherdataXbView(tenantId) {
    return request({
        url: '/basedata/realtimegatherdataXbView/' + tenantId,
        method: 'delete'
    })
}

// 获取户表实时数据视图列表
export function getRealtimegatherListXbView(query){
  return request({
    url: '/datastatistics/realtimegatherdataxb/list',
    method: 'get',
    params: query
  })
}

